package ac2;


import ac2.util.serial.PacketReader;

public class ControlHub {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		
		PacketReader reader;
		if (args.length > 0)
		{
			System.out.println("Using " + args[0]);
			reader = new PacketReader(args[0]);			
		}
		else
		{
			System.out.println("Using default serial");
			reader = new PacketReader();
		}
		/*
		MainFrame frame = new MainFrame();
		
		reader.addTemperaturePacketListener(frame);
		
		reader.start();
		frame.setVisible(true);
		*/
	}

}
